package com.insurance.task;

import javafx.scene.input.DataFormat;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
import sun.util.locale.provider.CalendarDataUtility;

import java.util.Calendar;

/**
 * Created by 27340 on 2018/1/7.
 */
@Component
public class PrintTask {
    public final static long SECOND = 1 * 1000;

    @Scheduled(fixedRate = SECOND * 4)
    public void fixedRateJob() {
        System.out.println("[FixedRateJob Execute] "+ Calendar.getInstance().getTime());
    }
}
